﻿<UserControl x:Class="BTM_Client_Application.ButtonWithImage"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colours.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
                <ResourceDictionary Source="pack://application:,,,/Styles/ButtonStyles.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
                <ResourceDictionary Source="pack://application:,,,/Styles/MyResources.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    
    <Grid>
        <StackPanel Name="ContentPanel" Orientation="{Binding PanelOrientation}" VerticalAlignment="Center">
            <Button Name="But" Height="30" Style="{StaticResource ToolBarButton}" HorizontalAlignment="Center">
                <Image Name="ButtonImage" Source="{Binding ButtonImageSource}" Stretch="Uniform"/>
            </Button>
            <TextBlock Name="ButtonText" Foreground="White" Text="{Binding ButtonText}" Margin="5,0,0,0" HorizontalAlignment="Center"/>
        </StackPanel>
    </Grid>
</UserControl>
